package com.zhuiyun.project.api.article.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * @ClassName ArticleAudit
 * @Description TODO
 * @Author maomao
 * @Date 2023/6/28 8:52
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@Table(name = "article_audit")
public class ArticleAudit {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;
    //id

    private Date auditTime;
    //审核时间

    private String auditor;
    //审核人员

    private Integer auditStatus;
    //审核状态(1已处理 2未处理)

    private Integer auditResult;
    //审核结果(1同意 2驳回)

    private String auditComment;
    //审核意见

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")//JsonFormat是出参格式化。
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")//DateTimeFormat 是入参格式化；
    private Date createTime;
    //创建时间

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")//JsonFormat是出参格式化。
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")//DateTimeFormat 是入参格式化；
    private Date updateTime;


    //修改时间
}
